package com.hssy.wululuaplan.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *      学生
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2024-02-27
 */
@Getter
@Setter
@TableName("student")
@ApiModel(value = "学生对象", description = "学生基本信息")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学生姓名")
    @TableField("student_name")
    private String studentName;

    @ApiModelProperty("姓名首字母")
    @TableField("initial")
    private String initial;

    @ApiModelProperty("性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("生日")
    @TableField("birthday")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ApiModelProperty("头像链接")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("年级")
    @TableField("grade")
    private String grade;

    @ApiModelProperty("学校")
    @TableField("school")
    private String school;

    @ApiModelProperty("家庭住址")
    @TableField("address")
    private String address;

    @ApiModelProperty("监护人")
    @TableField("guardian")
    private String guardian;

    @ApiModelProperty("监护人电话")
    @TableField("guardian_phone")
    private String guardianPhone;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("删除标识")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


}
